<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<spring:message code="project.application.name" var="tooltipMsg"/>
<spring:message code="login.username" var="loginUserName"/>
<spring:message code="login.password" var="loginPassword"/>
<c:set var="CONTEXT">${pageContext.request.contextPath}</c:set>
<c:set var="images">${pageContext.request.contextPath}/resources/images</c:set>
<form class="form-signin" role="form" action="${CONTEXT}/j_spring_security_check" method="post">
	<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
	<h1 class="form-signin-heading text-center"><img src="${images }/CloudMesh.png" />&nbsp;<spring:message code="project.application.name"/></h1>
	<input type="email" class="form-control" id="username" name="username" placeholder="${loginUserName }" required="required" autofocus/>
	<input type="password" id="password" name="password" class="form-control" placeholder="${loginPassword }" required>
	<br />
	<button class="btn btn-lg btn-primary btn-block" type="submit"><spring:message code="button.singin"/></button>
	<button class="btn btn-lg btn-success btn-block btn_link" data-link="${CONTEXT }/joinStep1/" type="button"><spring:message code="button.singup"/></button>
</form>
